package com.atguigu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-weather",url = "https://restapi.amap.com")
public interface WeatherFeignClient {

    //https://restapi.amap.com/v3/weather/weatherInfo?parameters
    //	4d42ca8559621809fec09facc3cb8ad0
    @GetMapping("/v3/weather/weatherInfo")
    String getWeather(@RequestParam("city") String city,
                      @RequestParam("key") String key);
}
